.class public Lcom/xingbook/service/download/j;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# static fields
.field private static e:I


# instance fields
.field private a:J

.field private b:Z

.field private c:Lcom/xingbook/service/download/k;

.field private d:Lcom/xingbook/service/download/m;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x1000

    sput v0, Lcom/xingbook/service/download/j;->e:I

    return-void
.end method

.method public constructor <init>(Lcom/xingbook/service/download/k;Lcom/xingbook/service/download/m;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/xingbook/service/download/j;->a:J

    iput-object p1, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    iput-object p2, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    iget-object v0, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    invoke-virtual {p1}, Lcom/xingbook/service/download/k;->a()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/xingbook/service/download/m;->b_(Ljava/lang/String;)V

    return-void
.end method

.method private a(Lcom/xingbook/service/download/k;IZ)V
    .locals 2

    if-nez p1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-eqz p3, :cond_2

    const/4 v0, 0x6

    invoke-virtual {p1, v0}, Lcom/xingbook/service/download/k;->a(I)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    invoke-virtual {p1}, Lcom/xingbook/service/download/k;->a()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1, p2}, Lcom/xingbook/service/download/m;->c(Ljava/lang/String;I)V

    goto :goto_0

    :cond_2
    invoke-virtual {p1, p2}, Lcom/xingbook/service/download/k;->a(I)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    invoke-virtual {p1}, Lcom/xingbook/service/download/k;->a()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1, p2}, Lcom/xingbook/service/download/m;->a(Ljava/lang/String;I)V

    goto :goto_0
.end method

.method private declared-synchronized b()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/service/download/j;->b:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->a()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public declared-synchronized a(Z)V
    .locals 1

    monitor-enter p0

    :try_start_0
    iput-boolean p1, p0, Lcom/xingbook/service/download/j;->b:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public run()V
    .locals 14

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->a()Ljava/lang/String;

    move-result-object v6

    const-wide/16 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x2

    const/4 v4, 0x0

    invoke-direct {p0, v0, v1, v4}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->f()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, ""

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x1

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    :goto_0
    return-void

    :cond_1
    invoke-static {}, Lcom/xingbook/c/u;->a()J

    move-result-wide v7

    const-wide/16 v4, 0x0

    cmp-long v1, v7, v4

    if-gez v1, :cond_3

    iget-object v1, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    const-wide/16 v2, -0x1

    cmp-long v0, v7, v2

    if-nez v0, :cond_2

    const/16 v0, 0x8

    :goto_1
    invoke-interface {v1, v6, v0}, Lcom/xingbook/service/download/m;->c(Ljava/lang/String;I)V

    goto :goto_0

    :cond_2
    const/4 v0, 0x7

    goto :goto_1

    :cond_3
    :try_start_0
    iget-object v1, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v1}, Lcom/xingbook/service/download/k;->i()Ljava/io/File;

    move-result-object v9

    new-instance v10, Ljava/io/RandomAccessFile;

    const-string v1, "rw"

    invoke-direct {v10, v9, v1}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-virtual {v9}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-virtual {v9}, Ljava/io/File;->length()J

    move-result-wide v2

    iget-object v1, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v1}, Lcom/xingbook/service/download/k;->d()J

    move-result-wide v4

    cmp-long v1, v2, v4

    if-ltz v1, :cond_7

    invoke-virtual {v10, v2, v3}, Ljava/io/RandomAccessFile;->seek(J)V

    iget-object v1, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/service/download/k;->b(J)V

    :cond_4
    :goto_2
    invoke-static {v0}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;)Ljava/net/HttpURLConnection;

    move-result-object v11

    const-string v0, "User-Agent"

    const-string v1, "Openread/DownloadService/Android"

    invoke-virtual {v11, v0, v1}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->d()J

    move-result-wide v0

    const-wide/16 v4, 0x0

    cmp-long v0, v0, v4

    if-lez v0, :cond_5

    const-string v0, "RANGE"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v4, "bytes="

    invoke-direct {v1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    const/16 v4, 0x2d

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v11, v0, v1}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getContentLength()I

    move-result v0

    int-to-long v0, v0

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v4

    const/16 v5, 0xc8

    if-ne v4, v5, :cond_8

    const-wide/16 v4, 0x0

    cmp-long v4, v0, v4

    if-lez v4, :cond_8

    iget-object v4, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v4, v0, v1}, Lcom/xingbook/service/download/k;->a(J)V

    iget-object v4, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getLastModified()J

    move-result-wide v12

    iput-wide v12, v4, Lcom/xingbook/service/download/k;->a:J

    :cond_6
    const-wide/16 v4, 0x0

    cmp-long v4, v0, v4

    if-gtz v4, :cond_e

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x3

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    invoke-virtual {v10}, Ljava/io/RandomAccessFile;->close()V

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_16

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "No space left on device"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_16

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x6

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    goto/16 :goto_0

    :cond_7
    const-wide/16 v2, 0x0

    const-wide/16 v4, 0x0

    :try_start_1
    invoke-virtual {v10, v4, v5}, Ljava/io/RandomAccessFile;->setLength(J)V

    iget-object v1, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const-wide/16 v4, 0x0

    invoke-virtual {v1, v4, v5}, Lcom/xingbook/service/download/k;->b(J)V

    iget-object v1, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const-wide/16 v4, -0x1

    invoke-virtual {v1, v4, v5}, Lcom/xingbook/service/download/k;->a(J)V

    goto/16 :goto_2

    :cond_8
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v4

    const/16 v5, 0xce

    if-ne v4, v5, :cond_b

    const-wide/16 v4, 0x0

    cmp-long v4, v0, v4

    if-lez v4, :cond_b

    add-long/2addr v0, v2

    iget-object v4, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v4}, Lcom/xingbook/service/download/k;->c()J

    move-result-wide v4

    cmp-long v4, v4, v0

    if-nez v4, :cond_9

    iget-object v4, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    iget-wide v4, v4, Lcom/xingbook/service/download/k;->a:J

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getLastModified()J

    move-result-wide v12

    cmp-long v4, v4, v12

    if-eqz v4, :cond_6

    :cond_9
    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x4

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    invoke-virtual {v10}, Ljava/io/RandomAccessFile;->close()V

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V

    invoke-virtual {v9}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_a

    invoke-virtual {v9}, Ljava/io/File;->delete()Z

    :cond_a
    const-wide/16 v0, 0x0

    invoke-virtual {v10, v0, v1}, Ljava/io/RandomAccessFile;->setLength(J)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const-wide/16 v1, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/service/download/k;->b(J)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const-wide/16 v1, -0x1

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/service/download/k;->a(J)V

    goto/16 :goto_0

    :cond_b
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getResponseCode()I
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    const/16 v5, 0xce

    if-ne v4, v5, :cond_d

    const-wide/16 v4, 0x0

    cmp-long v0, v0, v4

    if-gtz v0, :cond_d

    :try_start_2
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getHeaderFields()Ljava/util/Map;

    move-result-object v0

    const-string v1, "Content-Range"

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    const-wide/16 v4, 0x0

    invoke-static {v0, v4, v5}, Lcn/a/a/d/j;->a(Ljava/lang/String;J)J
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    move-result-wide v0

    :goto_3
    :try_start_3
    iget-object v4, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v4}, Lcom/xingbook/service/download/k;->c()J

    move-result-wide v4

    cmp-long v4, v4, v0

    if-eqz v4, :cond_6

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x4

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    invoke-virtual {v10}, Ljava/io/RandomAccessFile;->close()V

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V

    invoke-virtual {v9}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_c

    invoke-virtual {v9}, Ljava/io/File;->delete()Z

    :cond_c
    const-wide/16 v0, 0x0

    invoke-virtual {v10, v0, v1}, Ljava/io/RandomAccessFile;->setLength(J)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const-wide/16 v1, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/service/download/k;->b(J)V

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const-wide/16 v1, -0x1

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/service/download/k;->a(J)V

    goto/16 :goto_0

    :catch_1
    move-exception v0

    const-wide/16 v4, -0x1

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    move-wide v0, v4

    goto :goto_3

    :cond_d
    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x2

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    invoke-virtual {v10}, Ljava/io/RandomAccessFile;->close()V

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V

    goto/16 :goto_0

    :cond_e
    cmp-long v4, v0, v7

    if-lez v4, :cond_f

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x6

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    invoke-virtual {v10}, Ljava/io/RandomAccessFile;->close()V

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V

    goto/16 :goto_0

    :cond_f
    long-to-int v0, v0

    div-int/lit8 v0, v0, 0x64

    if-nez v0, :cond_17

    const/4 v0, 0x1

    move v4, v0

    :goto_4
    long-to-int v0, v2

    div-int v1, v0, v4

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v5, 0x3

    const/4 v7, 0x0

    invoke-direct {p0, v0, v5, v7}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    sget v0, Lcom/xingbook/service/download/j;->e:I

    new-array v5, v0, [B

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v7

    const/4 v0, 0x0

    :cond_10
    :goto_5
    invoke-virtual {v7, v5}, Ljava/io/InputStream;->read([B)I

    move-result v8

    const/4 v12, -0x1

    if-eq v8, v12, :cond_11

    invoke-direct {p0}, Lcom/xingbook/service/download/j;->b()Z

    move-result v12

    if-eqz v12, :cond_12

    :cond_11
    invoke-virtual {v7}, Ljava/io/InputStream;->close()V

    invoke-virtual {v10}, Ljava/io/RandomAccessFile;->close()V

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V

    invoke-direct {p0}, Lcom/xingbook/service/download/j;->b()Z

    move-result v0

    if-eqz v0, :cond_13

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x4

    const/4 v2, 0x0

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    goto/16 :goto_0

    :cond_12
    add-int/2addr v0, v8

    const/4 v12, 0x0

    invoke-virtual {v10, v5, v12, v8}, Ljava/io/RandomAccessFile;->write([BII)V

    int-to-long v12, v8

    add-long/2addr v2, v12

    iget-object v8, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v8, v2, v3}, Lcom/xingbook/service/download/k;->b(J)V

    if-lt v0, v4, :cond_10

    div-int v8, v0, v4

    add-int/2addr v1, v8

    iget-object v8, p0, Lcom/xingbook/service/download/j;->d:Lcom/xingbook/service/download/m;

    invoke-interface {v8, v6, v1}, Lcom/xingbook/service/download/m;->b(Ljava/lang/String;I)V

    rem-int/2addr v0, v4

    goto :goto_5

    :cond_13
    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->c()J

    move-result-wide v0

    iget-object v2, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v2}, Lcom/xingbook/service/download/k;->d()J

    move-result-wide v2

    cmp-long v0, v0, v2

    if-nez v0, :cond_15

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->j()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v9, v0}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    if-nez v0, :cond_14

    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    :cond_14
    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x5

    const/4 v2, 0x0

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    goto/16 :goto_0

    :cond_15
    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    goto/16 :goto_0

    :cond_16
    iget-object v0, p0, Lcom/xingbook/service/download/j;->c:Lcom/xingbook/service/download/k;

    const/4 v1, 0x5

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcom/xingbook/service/download/j;->a(Lcom/xingbook/service/download/k;IZ)V

    goto/16 :goto_0

    :cond_17
    move v4, v0

    goto/16 :goto_4
.end method
